package com.victor.pomelo.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import com.victor.pomelo.model.Resource;
import com.victor.pomelo.model.User;
 
public interface ResourceMapper {
	
	
	@Select("SELECT * FROM tb_user WHERE id = #{Id}")
	User getUser(@Param("Id") String userId);

	@Select("select * from tb_resource")
	List<Resource> findAll();
}